Grey matter is distributed at the surface of the cerebral hemispheres ( cerebral cortex ) and of the cerebellum ( cerebellar cortex ), as well as in the depths of the cerebrum ( thalamus; hypothalamus; subthalamus, basal ganglia putamen, globus pallidus, nucleus accumbens; septal nuclei ), cerebellar ( deep cerebellar nuclei dentate nucleus, globose nucleus, emboliform nucleus, fastigial nucleus ), brainstem ( substantia nigra, red nucleus, olivary nuclei, cranial nerve nuclei ).